﻿<Window x:Class="CrmLicensing.Generator.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="License Generator" Height="700" Width="525">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="140"/>
            <RowDefinition Height="280"/>
            <RowDefinition Height="140"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0"  Orientation="Vertical">
            <TextBlock Text="License Generator" FontSize="18"/>
            <Button Content="Load Key" Margin="10" Click="Button_Click_LoadKey"/>
            <TextBlock Text="Public Key" Margin="10" FontSize="16"/>
            <TextBox x:Name="PublicKey"/>
        </StackPanel>
        <StackPanel Grid.Row="1" >
            <TextBlock Text="Organisation Name" Margin="10" FontSize="16"/>
            <TextBox x:Name="TextOrgName" Margin="10" />
            <TextBlock Text="Trial License" Margin="10" FontSize="16"/>
            <CheckBox x:Name="CheckTrial" Margin="10" />
            <TextBlock Text="Expiry Date" Margin="10" FontSize="16"/>
            <DatePicker x:Name="DateTrial" Margin="10" />
            <Button Content="Generate License Key" Click="Button_Click_Generate" Margin="10"/>
        </StackPanel>
        <StackPanel Grid.Row="2" >
            <TextBlock Text="License Key" FontSize="16" Margin="10"/>
            <TextBox x:Name="LicenseKeyText" VerticalAlignment="Stretch" AcceptsReturn="True" TextWrapping="WrapWithOverflow" MinLines="5"  />
        </StackPanel>
        <StackPanel Grid.Row="3">
            <Button Content="Verify" Margin="10" Click="Button_Click_Validate"/>
            <TextBlock x:Name="ResultText" Margin="40,10" FontSize="16"/>
        </StackPanel>
    </Grid>
</Window>
